namespace Nakio.Framework.Net.Client
{
    public class ClientCallback : IServerContractCallback
    {
        public Communication.EncryptToken EncryptToken { get; set; }     

        public object ExecuteClientReturnCommand(Communication.EncryptedCommand encryptedCommand)
        {
            var command = encryptedCommand.DecryptCommand(EncryptToken, null);
            return command.Execute();
        }
    }
}